package no11;

import java.util.LinkedList;
import java.util.List;
import java.util.Queue;

public class Test {
	public static void main(String[] args) {
		Queue<String> queue = new LinkedList<String>();
		queue.offer("1");//优先使用
		queue.add("2");
		String a =queue.peek();
		System.out.println(a);
		
		List list = new LinkedList();
		list.add("dd");
		
		System.out.println(queue);		
		System.out.println(queue.poll());
		System.out.println(queue);
		
		
		
		//Arrays.asList(1,2,3);
		//List<String> list =new ArrayList<String>();
		//list.add("1");
		//list.add("2");
		//System.out.println(list.toString());
	}
}
